export function TimeDate(now) { 
    now = new Date(now)
    var year=now.getFullYear(); 
    var month=now.getMonth()+1; 
    var date=now.getDate(); 
    var hour=now.getHours(); 
    var minute=now.getMinutes(); 
    var second=now.getSeconds(); 
    return year+"-"+addzero(month)+"-"+addzero(date)+" "+addzero(hour)+":"+addzero(minute)+":"+addzero(second); 
} 
function addzero(i){
    return i<10?"0"+i:i;
}
